import axios from '../axios'

export const addVillage = (params) => {
    return axios.post(`base/village`, params)
}

export const modifyVillage= (id, params) => {
    return axios.patch(`base/village/` + id, params)
}

export const villageList = (params) => {
    return axios.post(`base/village/list`, params)
}

export const villageItems = () => {
    return axios.get(`base/village/items`)
}

export const removeVillage = (id) => {
    return axios.delete(`base/village/` + id);
}

export const villageInfo = (id) => {
    return axios.get(`base/village/` + id);
}